Correct stupid cut and paste. (Man, Ron's fast...)
authorrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Fri, 16 Apr 2004 16:36:19 +0000 (16:36 +0000)
committerrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Fri, 16 Apr 2004 16:36:19 +0000 (16:36 +0000)
gpsbabel/main.c

index cc45c8f377a6b587f4a252ef6a9f94bd49556807..477e2368a57267df93fa0c5a6c24810b572b884f 100644 (file)
@@ -160,8 +160,8 @@ main(int argc, char *argv[])
                                        /* simulates the default behaviour of waypoints */
                                        if (doing_nothing) 
                                                global_opts.masked_objective |= WPTDATAMASK;
-                                       if (ovecs->rd_init == NULL) {
-                                               fatal ("Format does not support reading.\n");
+                                       if (ovecs->wr_init == NULL) {
+                                               fatal ("Format does not support writing.\n");
                                        }
                                        ovecs->wr_init(ofname);
                                        ovecs->write();